package models

import (
	"time"
)

type Relation struct {
	RelationId   uint      `xorm:"relation_id notnull int pk autoincr"`
	TaxonomyId   uint      `xorm:"taxonomy_id notnull int" valid:"required,uint32"`
	AncestorId   uint      `xorm:"ancestor_id notnull int" valid:"required,uint32"`
	DescendantId uint      `xorm:"descendant_id notnull int" valid:"required,uint32"`
	CreationDate time.Time `xorm:"creation_date notnulldatetime"`
}

func (r *Relation) TableName() string {
	return "mm_relations"
}
